home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
maksiu
/
lists
/
amoslist-1197.lzh
/
AMOSLIST
/
000067_amos-request@svcs1.digex.net_Fri Nov 7 15:49:14 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-12-04
|
2KB
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id PAA15977
for <mcox@access.digex.net>; Fri, 7 Nov 1997 15:47:58 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id NAA28455
for amos-out; Fri, 7 Nov 1997 13:02:16 -0500 (EST)
Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id NAA28452
for <amos-list@svcs1.digex.net>; Fri, 7 Nov 1997 13:02:15 -0500 (EST)
Received: from MCSDEV.MCS.CO.UK (SYSTEM@mcsdev.mcs.co.uk [193.32.50.112])
by mail2.access.digex.net (8.8.5/8.8.5) with SMTP id NAA24059
for <amos-list@access.digex.net>; Fri, 7 Nov 1997 13:02:13 -0500 (EST)
Date: Fri, 7 Nov 1997 18:03 GMT
From: "SIMONC%MARS.decnet"@mcs.co.uk (Simon Champion - simonc@mcs.co.uk)
Message-Id: <009BCF2FE3D2B080.5392@mcs.co.uk>
To: amos-list@access.digex.net
Subject: Re: quick question
X-VMS-To: MCSDEV::SMTP%"amos-list@access.digex.net"
Status: O
X-Status:
>From: MCSDEV::SMTP%"mattw@netsoc.ucd.ie" "Matt Ward" 7-NOV-1997 15:05:27.84
>To: Amos-List <amos-list@access.digex.net>
>Subj: a quick question
>Hi all!
>Anyone got anyideas on this one:
>I want to use a three character string eg "ADC" or something.
>Now suppose I want to change one character to "E" by removing the
>lowest in this case "A". Is there a way of doing this quickly (ie in
>one line) , no matter where the lowest is?
>Or I could do it that I keep adding letters to the string and then I
>need a fast (very) way of picking out the highest 3 letters. Any
>ideas???
--------------------------------------
You need to use Asc() to get the ASCII values of each character, and
compare them.
Try something like this:
(this routine should work for any length of string)
For COUNT=1 to Len(THE_STRING)-1
If Asc(Mid$(THE_STRING,COUNT,1))>HIGHEST Then HIGHEST=COUNT
Next
In some other languages, it's much easier than this. Amos may have it's
good points, but it can't do everything the easiest way :-}
That's all for now....
Simon Champion.
-------------------------------------------------------------------------------
"If in doubt... blame it on Simon :-( "